Optimal. Leaf size=149 \[ \frac {1}{16} \left (2 x^2-x+3\right )^{3/2} (2 x+5)^2-\frac {127}{128} \left (2 x^2-x+3\right )^{3/2} (2 x+5)+\frac {4535}{768} \left (2 x^2-x+3\right )^{3/2}+\frac {(489587-80844 x) \sqrt {2 x^2-x+3}}{4096}-\frac {11001 \tanh ^{-1}\left (\frac {17-22 x}{12 \sqrt {2} \sqrt {2 x^2-x+3}}\right )}{16 \sqrt {2}}+\frac {5627989 \sinh ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{8192 \sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 149, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.175, Rules used = {1653, 814, 843, 619, 215, 724, 206} \[ \frac {1}{16} \left (2 x^2-x+3\right )^{3/2} (2 x+5)^2-\frac {127}{128} \left (2 x^2-x+3\right )^{3/2} (2 x+5)+\frac {4535}{768} \left (2 x^2-x+3\right )^{3/2}+\frac {(489587-80844 x) \sqrt {2 x^2-x+3}}{4096}-\frac {11001 \tanh ^{-1}\left (\frac {17-22 x}{12 \sqrt {2} \sqrt {2 x^2-x+3}}\right )}{16 \sqrt {2}}+\frac {5627989 \sinh ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{8192 \sqrt {2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 215
Rule 619
Rule 724
Rule 814
Rule 843
Rule 1653
Rubi steps
\begin {align*} \int \frac {\sqrt {3-x+2 x^2} \left (2+x+3 x^2-x^3+5 x^4\right )}{5+2 x} \, dx &=\frac {1}{16} (5+2 x)^2 \left (3-x+2 x^2\right )^{3/2}+\frac {1}{160} \int \frac {\sqrt {3-x+2 x^2} \left (-805-6490 x-9300 x^2-5080 x^3\right )}{5+2 x} \, dx\\ &=-\frac {127}{128} (5+2 x) \left (3-x+2 x^2\right )^{3/2}+\frac {1}{16} (5+2 x)^2 \left (3-x+2 x^2\right )^{3/2}+\frac {\int \frac {\sqrt {3-x+2 x^2} \left (-127720+824160 x+725600 x^2\right )}{5+2 x} \, dx}{10240}\\ &=\frac {4535}{768} \left (3-x+2 x^2\right )^{3/2}-\frac {127}{128} (5+2 x) \left (3-x+2 x^2\right )^{3/2}+\frac {1}{16} (5+2 x)^2 \left (3-x+2 x^2\right )^{3/2}+\frac {\int \frac {(7818720-19402560 x) \sqrt {3-x+2 x^2}}{5+2 x} \, dx}{245760}\\ &=\frac {(489587-80844 x) \sqrt {3-x+2 x^2}}{4096}+\frac {4535}{768} \left (3-x+2 x^2\right )^{3/2}-\frac {127}{128} (5+2 x) \left (3-x+2 x^2\right )^{3/2}+\frac {1}{16} (5+2 x)^2 \left (3-x+2 x^2\right )^{3/2}-\frac {\int \frac {-5428921920+10805738880 x}{(5+2 x) \sqrt {3-x+2 x^2}} \, dx}{7864320}\\ &=\frac {(489587-80844 x) \sqrt {3-x+2 x^2}}{4096}+\frac {4535}{768} \left (3-x+2 x^2\right )^{3/2}-\frac {127}{128} (5+2 x) \left (3-x+2 x^2\right )^{3/2}+\frac {1}{16} (5+2 x)^2 \left (3-x+2 x^2\right )^{3/2}-\frac {5627989 \int \frac {1}{\sqrt {3-x+2 x^2}} \, dx}{8192}+\frac {33003}{8} \int \frac {1}{(5+2 x) \sqrt {3-x+2 x^2}} \, dx\\ &=\frac {(489587-80844 x) \sqrt {3-x+2 x^2}}{4096}+\frac {4535}{768} \left (3-x+2 x^2\right )^{3/2}-\frac {127}{128} (5+2 x) \left (3-x+2 x^2\right )^{3/2}+\frac {1}{16} (5+2 x)^2 \left (3-x+2 x^2\right )^{3/2}-\frac {33003}{4} \operatorname {Subst}\left (\int \frac {1}{288-x^2} \, dx,x,\frac {17-22 x}{\sqrt {3-x+2 x^2}}\right )-\frac {5627989 \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{23}}} \, dx,x,-1+4 x\right )}{8192 \sqrt {46}}\\ &=\frac {(489587-80844 x) \sqrt {3-x+2 x^2}}{4096}+\frac {4535}{768} \left (3-x+2 x^2\right )^{3/2}-\frac {127}{128} (5+2 x) \left (3-x+2 x^2\right )^{3/2}+\frac {1}{16} (5+2 x)^2 \left (3-x+2 x^2\right )^{3/2}+\frac {5627989 \sinh ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{8192 \sqrt {2}}-\frac {11001 \tanh ^{-1}\left (\frac {17-22 x}{12 \sqrt {2} \sqrt {3-x+2 x^2}}\right )}{16 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 91, normalized size = 0.61 \[ \frac {-16897536 \sqrt {2} \tanh ^{-1}\left (\frac {17-22 x}{12 \sqrt {4 x^2-2 x+6}}\right )+4 \sqrt {2 x^2-x+3} \left (6144 x^4-21120 x^3+79840 x^2-300404 x+1561161\right )+16883967 \sqrt {2} \sinh ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{49152} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.89, size = 125, normalized size = 0.84 \[ \frac {1}{12288} \, {\left (6144 \, x^{4} - 21120 \, x^{3} + 79840 \, x^{2} - 300404 \, x + 1561161\right )} \sqrt {2 \, x^{2} - x + 3} + \frac {5627989}{32768} \, \sqrt {2} \log \left (4 \, \sqrt {2} \sqrt {2 \, x^{2} - x + 3} {\left (4 \, x - 1\right )} - 32 \, x^{2} + 16 \, x - 25\right ) + \frac {11001}{64} \, \sqrt {2} \log \left (-\frac {24 \, \sqrt {2} \sqrt {2 \, x^{2} - x + 3} {\left (22 \, x - 17\right )} + 1060 \, x^{2} - 1036 \, x + 1153}{4 \, x^{2} + 20 \, x + 25}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 129, normalized size = 0.87 \[ \frac {1}{12288} \, {\left (4 \, {\left (8 \, {\left (12 \, {\left (16 \, x - 55\right )} x + 2495\right )} x - 75101\right )} x + 1561161\right )} \sqrt {2 \, x^{2} - x + 3} + \frac {5627989}{16384} \, \sqrt {2} \log \left (-4 \, \sqrt {2} x + \sqrt {2} + 4 \, \sqrt {2 \, x^{2} - x + 3}\right ) - \frac {11001}{32} \, \sqrt {2} \log \left ({\left | -2 \, \sqrt {2} x + \sqrt {2} + 2 \, \sqrt {2 \, x^{2} - x + 3} \right |}\right ) + \frac {11001}{32} \, \sqrt {2} \log \left ({\left | -2 \, \sqrt {2} x - 11 \, \sqrt {2} + 2 \, \sqrt {2 \, x^{2} - x + 3} \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 127, normalized size = 0.85 \[ \frac {\left (2 x^{2}-x +3\right )^{\frac {3}{2}} x^{2}}{4}-\frac {47 \left (2 x^{2}-x +3\right )^{\frac {3}{2}} x}{64}-\frac {5627989 \sqrt {2}\, \arcsinh \left (\frac {4 \sqrt {23}\, \left (x -\frac {1}{4}\right )}{23}\right )}{16384}-\frac {11001 \sqrt {2}\, \arctanh \left (\frac {\left (-11 x +\frac {17}{2}\right ) \sqrt {2}}{12 \sqrt {-11 x +2 \left (x +\frac {5}{2}\right )^{2}-\frac {19}{2}}}\right )}{32}+\frac {1925 \left (2 x^{2}-x +3\right )^{\frac {3}{2}}}{768}-\frac {20211 \left (4 x -1\right ) \sqrt {2 x^{2}-x +3}}{4096}+\frac {3667 \sqrt {-11 x +2 \left (x +\frac {5}{2}\right )^{2}-\frac {19}{2}}}{32} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.01, size = 128, normalized size = 0.86 \[ \frac {1}{4} \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {3}{2}} x^{2} - \frac {47}{64} \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {3}{2}} x + \frac {1925}{768} \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {3}{2}} - \frac {20211}{1024} \, \sqrt {2 \, x^{2} - x + 3} x - \frac {5627989}{16384} \, \sqrt {2} \operatorname {arsinh}\left (\frac {4}{23} \, \sqrt {23} x - \frac {1}{23} \, \sqrt {23}\right ) + \frac {11001}{32} \, \sqrt {2} \operatorname {arsinh}\left (\frac {22 \, \sqrt {23} x}{23 \, {\left | 2 \, x + 5 \right |}} - \frac {17 \, \sqrt {23}}{23 \, {\left | 2 \, x + 5 \right |}}\right ) + \frac {489587}{4096} \, \sqrt {2 \, x^{2} - x + 3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sqrt {2\,x^2-x+3}\,\left (5\,x^4-x^3+3\,x^2+x+2\right )}{2\,x+5} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {2 x^{2} - x + 3} \left (5 x^{4} - x^{3} + 3 x^{2} + x + 2\right )}{2 x + 5}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________